package com.dyh.quickdemozwei.serlbd;

import java.io.IOException;
import java.io.OutputStream;

/**
 * @Author: yhdong
 * @Date: 2021/11/19 17:00
 */
public class StringOutputStream extends OutputStream {

    StringBuilder mBuf = new StringBuilder();

    @Override
    public void write(int b) throws IOException {
        mBuf.append((char) b);
    }

    public StringBuilder getmBuf() {
        return mBuf;
    }
}
